package com.collect.tanzania.zhiBean.zhiReceive;

import com.collect.tanzania.zhiUtils.StringUtil;

import java.io.Serializable;

public class ZHIRGroupPerformanceOrderEntity implements Serializable {
    private String date;
    private String loginName;
    private String leven;
    private String repayAmount;
    private String sysUserId;
    private String settledRate;
    private String todaySettledNum;
    private String totalNum;

    public String getDate() {
        return StringUtil.safeString(date);
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getLoginName() {
        return StringUtil.safeString(loginName);
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getLeven() {
        return StringUtil.safeString(leven);
    }

    public String getLevenFormat() {
        String tempLevel = getLeven();
        try {
            tempLevel = tempLevel.replaceAll("M", "B");
            return tempLevel;
        } catch (Exception e) {
            e.printStackTrace();
        }
        return tempLevel;
    }

    public void setLeven(String leven) {
        this.leven = leven;
    }

    public String getRepayAmount() {
        return StringUtil.safeString(repayAmount);
    }

    public void setRepayAmount(String repayAmount) {
        this.repayAmount = repayAmount;
    }

    public String getSysUserId() {
        return StringUtil.safeString(sysUserId);
    }

    public void setSysUserId(String sysUserId) {
        this.sysUserId = sysUserId;
    }

    public String getSettledRate() {
        return StringUtil.safeString(settledRate);
    }

    public String getSettledRateFormat() {
        return StringUtil.numberFormatterThousandPercent(getSettledRate());
    }

    public float getSettledRateFloat() {
        return StringUtil.numberTothousandFormatterFloat(getSettledRate());
    }

    public void setSettledRate(String settledRate) {
        this.settledRate = settledRate;
    }

    public String getTodaySettledNum() {
        return StringUtil.safeString(todaySettledNum);
    }

    public int getTodaySettledNumFormat() {
        return StringUtil.numberTothousandFormatterInt(getTodaySettledNum());
    }

    public void setTodaySettledNum(String todaySettledNum) {
        this.todaySettledNum = todaySettledNum;
    }

    public String getTotalNum() {
        return StringUtil.safeString(totalNum);
    }

    public int getTotalNumFormat() {
        return StringUtil.numberTothousandFormatterInt(getTotalNum());
    }

    public void setTotalNum(String totalNum) {
        this.totalNum = totalNum;
    }
}
